﻿// 用户信息
function getLoginInfo(){
	
	$.ajax({
        type: "POST",
        url: contextPath + "/web/settings/getLoginInfo",
        dataType: "html",
        data: {},
        beforeSend: function () {
            $("#maincontent").html("");
            $("#beforeLoading").show();
            timeOutHint();
        },
        success: function (res) {
            if ("" != res) {
                $("#beforeLoading").hide();
                $("#maincontent").html(res);
            }
        },
        error: function(){
        	$("#beforeLoading").hide();
        	failHint();
        }
    });
	
}


// 修改密码
function pwdInfo(){
	$.ajax({
        type: "POST",
        url: contextPath + "/web/settings/getPwd",
        dataType: "html",
        data: {},
        beforeSend: function () {
            $("#maincontent").html("");
            $("#beforeLoading").show();
            timeOutHint();
        },
        success: function (res) {
            if ("" != res) {
                $("#beforeLoading").hide();
                $("#maincontent").html(res);
            }
        },
        error: function(){
        	$("#beforeLoading").hide();
        	failHint();
        }
    });
}
